package Ass7;

public class Ass7_11_6 {
  public static void main(String[] args) {
    Rectangle rectangleObject1 = new Rectangle(2,2);
    Rectangle rectangleObject2 = new Rectangle(2,2);
    Rectangle rectangleObject3 = new Rectangle(3,4);
    Rectangle rectangleObject4 = new Rectangle(5,6);

    System.out.println("Rectangle1 = " + rectangleObject1);
    System.out.println("Rectangle1's Area = " + rectangleObject1.getArea());
    System.out.println("Rectangle2 = " + rectangleObject2);
    System.out.println("Rectangle2's Area = " + rectangleObject2.getArea());
    System.out.print("[Rectangle1 and Rectangle2] equals = ");
    System.out.println(rectangleObject1.equals(rectangleObject2));
    
    System.out.println("\nRectangle3 = " + rectangleObject3);
    System.out.println("Rectangle3's Area = " + rectangleObject3.getArea());
    System.out.println("Rectangle4 = " + rectangleObject4);
    System.out.println("Rectangle4's Area = " + rectangleObject4.getArea());
    System.out.print("[Rectangle3 and Rectangle4] equals = ");
    System.out.println(rectangleObject3.equals(rectangleObject4));
  }
}